package com.xiaozhi;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainTest {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans2.xml");
		// ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
//		下面是Cat
//		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
//		Person bean = context.getBean(Person.class);
//		System.out.println(bean);
	}
}
